<!DOCTYPE html>
<html>
<head>
    <meta charset=utf-8>
    <script>
        function openH5B() {
            location.href = 'josan://openSecondActivity/';
            setTimeout(function () {
                location.href = 'josan://register/login';
            }, 0);
        }

        /**
         * 登录成功的回调方法，用于test2.html中通过josan://trigger/login/logined触发
         */
        function logined(name, age) {
            document.getElementById("login").innerHTML = name + ',年龄：' + age;
            document.getElementById("login").style.backgroundColor= "green";
        }
    </script>
</head>
<body>
    <div  id="login" style="font-size: 30px;text-align:center;background-color: red" onclick="registerLogin()">未登录</div>
    <div  style="font-size: 40px;text-align:center"  onclick="openH5B()">进入H5 B</div>
</body>
</html>